package com.kstudio.videocapture.util.bitmapload;


public class BitmapDoubleCacheParam {

    private static final char separatorChar = System.getProperty("file.separator", "/").charAt(0);;
    private static final String separator = String.valueOf(separatorChar);

    private String  mPath;

    public BitmapDoubleCacheParam(String path) {
        mPath  = path;
    }

    public String getPath()   { return mPath; }
    public String getKey() {
        int separatorIndex = mPath.lastIndexOf(separator);
        return (separatorIndex < 0) ? mPath : mPath.substring(separatorIndex + 1, mPath.length());
    }
}